package com.cndongtai.util;

import org.apache.commons.lang.math.RandomUtils;

public class ValidateCodeUtil {
	
	public static String generateValidateCode(int codeLength) {
		StringBuffer buffer = new StringBuffer();
		for(int i=0;i<codeLength;i++) {
			buffer.append(RandomUtils.nextInt(10));
		}
		
		return buffer.toString();
	}

}
